package com.cjw.controller.soulRead;

import com.cjw.config.annotation.OperationLogAnnotation;
import com.cjw.pojo.dto.soulread.RecommendReadDTO;
import com.cjw.service.soulread.ReadService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author : cjw
 * @date: : 2022/1/25 10:04
 * @description : 朗读推荐资源
 */
@RestController
@RequestMapping("/user/read")
@Api("朗读推荐资源")
public class LastRecommendedController {
    @Autowired
    private ReadService readService;

    @GetMapping("/find/lastHeat")
    @ApiOperation("最新热度")
    @OperationLogAnnotation(operModul = "心灵倾听-最新推荐",operType = "最新热度",operDesc = "查询")
    public List<RecommendReadDTO> lastHeat() {
        return readService.lastHeat();
    }

    @PostMapping("/find/heatPerson")
    @ApiOperation("热度人物")
    @OperationLogAnnotation(operModul = "心灵倾听-最新推荐",operType = "热度人物",operDesc = "查询")
    public List<RecommendReadDTO> heatPerson() {
        return null;
    }

    @PostMapping("/find/personRecommend")
    @ApiOperation("个性推荐")
    @OperationLogAnnotation(operModul = "心灵倾听-最新推荐",operType = "热度人物",operDesc = "查询")
    public List<RecommendReadDTO> personRecommend() {
        return null;
    }
}
